package com.seeyon.apps.leaveRecord.button;

import com.seeyon.cap4.form.bean.button.CommonBtn;
import com.seeyon.cap4.form.util.Enums;

public class ManualExecQuartzWidget extends CommonBtn {
	
	@Override
	public void init() {
		this.setPluginId("manualExecQuartzWidget");//设置插件或者组件id，和pluginCfg.xml中的id一致
		this.setIcon("cap-icon-custom-button");
	}
	
	@Override
	public boolean canUse(Enums.FormType formType) {
		if (formType == Enums.FormType.unFlowForm) {
			return true;
		}
		return false;
	}
	
	@Override
	public String getKey() {
		return "8809786768710999999";
	}

	@Override
	public String getMBInjectionInfo() {
		return null;
	}

	@Override
	public String getNameSpace() {
		return "customBtn_" + this.getKey();
	}

	@Override
	public String getPCInjectionInfo() {
		return "{\"path\":\"apps_res/cap/leaveRecord/\",\"jsUri\":\"js/ManualExecQuartzWidget.js\",\"initMethod\":\"init\",\"nameSpace\":\""
		+ this.getNameSpace() + "\"}";
	}

	@Override
	public String getText() {
		return "手动刷新";
	}

}
